package com.interest.business.mapper;

import java.util.List;
import com.interest.business.domain.InterestOrder;
import com.interest.business.domain.vo.OrderQueryVo;
import com.interest.business.domain.vo.OrderVo;
import com.interest.business.outer.request.OrderRefundBean;

/**
 * 订单记录Mapper接口
 * 
 * @author ruoyi
 * @date 2023-11-11
 */
public interface InterestOrderMapper {
    /**
     * 查询订单记录
     *
     * @param id 订单记录主键
     * @return 订单记录
     */
    public InterestOrder selectInterestOrderById(String id);

    /**
     * 查询订单记录列表
     *
     * @param interestOrder 订单记录
     * @return 订单记录集合
     */
    public List<InterestOrder> selectInterestOrderList(OrderQueryVo interestOrder);

    /**
     * 新增订单记录
     *
     * @param interestOrder 订单记录
     * @return 结果
     */
    public int insertInterestOrder(InterestOrder interestOrder);

    int refund(OrderRefundBean orderRefundBean);

    OrderVo selectInterestOrderByJtcOrderNo(String jtcOrderNo);
}
